#!usr/bin/env python  
# -*- coding:utf-8 _*-
""" 
@author:robot
@file: api001_databasetype.py 
@version:
@time: 2022/05/27 
"""
from pprint import pprint

from TapClientCore.T02_tm_api.v2_api.v2_api_base import *


class Api001DatabaseTypesUrl(V2ApiUrlBase):
    url_database_type = api_joint(V2ApiUrlBase().server, 'DatabaseTypes')


class Api001DatabaseTypes(V2ApiBase, Api001DatabaseTypesUrl):

    def pdk_get_database_type(self):
        response = self.tapclient(
            self.get,
            self.url_database_type
            + self.access_token
        )
        return response


if __name__ == '__main__':
    T = Api001DatabaseTypes()
    pprint(T.pdk_get_database_type())
